Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX zoom in docs #10801

Merged
merged 17 commits into from
May 19, 2020
Merged

FIX zoom in docs #10801

merged 17 commits into from
May 19, 2020

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented May 15, 2020

What I did

  • Zoom isn't working on docs mode
  • There's a lot of unnecessary divs
  • I wanted the layout parameter to work in docs

@ndelangen ndelangen added maintenance User-facing maintenance tasks addon: docs labels May 15, 2020
@ndelangen ndelangen added this to the 6.0 milestone May 15, 2020
@ndelangen ndelangen requested a review from tmeasday as a code owner May 15, 2020 19:20
@ndelangen ndelangen self-assigned this May 15, 2020
@ndelangen ndelangen requested a review from usulpro as a code owner May 16, 2020 09:19
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!! I also updated the layout stories to make them a proper docs test too. Minor comments inline.

lib/components/src/blocks/Preview.tsx Show resolved Hide resolved
lib/components/src/blocks/Preview.tsx Outdated Show resolved Hide resolved
position: 'relative',
});

const getLayout = (children: ReactElement[]) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAICT this uses the first story layout if there are multiple stories with different layouts, or padded if there are non-story children. WDYT about using the story layout if all children are stories and their layouts match, and padded layout in any other case. Seems a little simpler and more predictable?

@shilman
Copy link
Member

shilman commented May 16, 2020

@ndelangen gadzooks! i'm seeing some regressions in the UI review 🔍

@ndelangen ndelangen merged commit 0f4e98d into next May 19, 2020
@ndelangen ndelangen deleted the tech/cleanup-docs-code-fix-zoom branch May 19, 2020 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addon: docs block: other maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants